package hxy.bytecode.spring.bean.repository;

import hxy.bytecode.spring.bean.entity.UserEntity;
import org.springframework.stereotype.Repository;

/**
 * @author eric
 * @date 11/6/19 9:00 AM
 */
@Repository
public class UserRepository {
    public UserEntity getUserById(Integer id){
        UserEntity userEntity = new UserEntity();
        userEntity.setId(id);
        userEntity.setName("新");
        return userEntity;
    }
}
